@echo off
echo 测试入住流程工作流功能
echo ================================

echo.
echo 1. 测试启动工作流
curl -X POST "http://localhost:8080/system/management/startWorkflow?checkInManagementId=1" ^
  -H "Authorization: Bearer YOUR_TOKEN" ^
  -H "Content-Type: application/json"

echo.
echo.
echo 2. 测试处理工作流任务
curl -X POST "http://localhost:8080/system/management/handleTask?taskId=TASK_ID&opinion=同意&auditStatus=1&checkInManagementId=1" ^
  -H "Authorization: Bearer YOUR_TOKEN" ^
  -H "Content-Type: application/json"

echo.
echo.
echo 3. 查询待办任务
curl -X GET "http://localhost:8080/system/pendingTasks/list" ^
  -H "Authorization: Bearer YOUR_TOKEN" ^
  -H "Content-Type: application/json"

echo.
echo.
echo 4. 查询审批记录
curl -X GET "http://localhost:8080/system/accraditationRecord/list" ^
  -H "Authorization: Bearer YOUR_TOKEN" ^
  -H "Content-Type: application/json"

echo.
echo 测试完成！
pause

